package com.zzxy.spring.List;

import com.zzxy.spring.entity.User;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.ArrayList;
import java.util.List;

public class UserExt {
    private User user;

    private List<User> userList = new ArrayList<User>();

    public User getUser(){
        return user;
    }
    public void setUser(User user){
        this.user=user;
    }
    @Override
    public String toString(){
        return "UserExt [user=" + user + "]";
    }

    @RequestMapping("register3")
    public String register3(UserExt user){
        System.out.println(user);
        return "/user/info";
    }
    @RequestMapping("register4")
    public String register4(UserExt user){
        System.out.println(user.getUserList());
        return "/user/info";
    }

}
